<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>eByte CMS - {$page->getNavTitle()}</title>
		<!-- <link rel="shortcut icon" href="favicon.ico"> -->
		<link rel="shortcut icon" type="icon" href="{$Sys_DesignBasePath}/favicon.ico">
		

		<link rel="stylesheet" type="text/css" href="{$Sys_DesignBasePath}/style.css">		
		<link rel="stylesheet" type="text/css" href="{$Sys_DesignBasePath}/suckerfish.css">
		
{if !$Sys_CurrentUser->getIsGuest()}
		<script type="text/javascript" src="{$Sys_DesignBasePath}/suckerfish.js"></script>		
{/if}				
		<script src="{$Sys_JsLibsURL}/mootools/mootools-1.2.1-core.js" type="text/javascript"></script>
		<script src="{$Sys_JsLibsURL}/mootools/mootools-1.2-more.js" type="text/javascript"></script>

	</head>
	<body>

		<div id="header">
			<div id="title">eByte Content Management System (eCMS)</div>
			<div id="version"><b>Domain</b>: {$Sys_Runtime->getConfiguration("site_domain")}</div>
			<div id="logo"></div>
			
		</div>
		 	
		<div id="headerLogo"><img src="{$Sys_DesignBasePath}/images/Header-Logo.png" alt="" /></div>

		<div id="navigation">
{if !$Sys_CurrentUser->getIsGuest()}
			<div id="path"><b>Version</b>: {$Sys_Runtime->getSystemVersion()}, <b>Modul-Version</b>: {$Sys_Runtime->getModuleVersion()}</div>
			<div id="logout">Angemeldet als: {$Sys_CurrentUser->GetRealname()}, <a href="?page=login&amp;method=logout">Abmelden</a></div>
{/if}
		</div>

{if !$Sys_CurrentUser->getIsGuest()}
		<div id="sfnav"><div style="width:4px; float: left"></div>
			<ul id="nav">{foreach from=$Sys_Wrapper->getPrimaryNavigation() item=p}{if $p->canPageRead() && $p->getIsNavVisible()} 
				<li>
					<a style="background-image: url('{$Sys_DesignBasePath}/images/icons/20x20/{$p->getNavImage()}');" {if $p->getIsInPath()}id="current" {/if}href="{$p->getURL()}">{$p->getNavTitle()}</a>
					{if $p->hasSubPages()}<ul>{foreach from=$p->getSubPages() item=sp}{if $sp->canPageRead() && $sp->getIsNavVisible()} 
						<li><a style="background-image: url('{$Sys_DesignBasePath}/images/icons/20x20/{$sp->getNavImage()}');" {if $sp->getIsInPath()}id="current" {/if}href="{$sp->getURL()}">{$sp->getNavTitle()}</a></li>{/if}{/foreach}

					</ul>
				{/if}</li>
				{/if}{/foreach}</ul>
		</div>
{/if}
	
{if $Sys_CurrentUser->getIsGuest()}
		<div id="inactive"></div>
{/if}	

		<div id="content">
			
			<div id="toolbox" {if !$page->hasToolboxItems()}style="visibility: hidden; display: none;"{/if}>
				{if $Sys_Wrapper->getItemToolbox()}
				<h2>Aktueller Bereich</h2>
				<ul>
					{foreach from=$Sys_Wrapper->getItemToolbox() item=i}
					<li>{html_linkbutton icon=$i->getIcon() text=$i->getTitle() type="button" link=$i->getLink() size="20" }</li>
					{/foreach}
				</ul>
				{/if}

				{if $Sys_Wrapper->getInstanceToolbox()}
				<h2>Aktuelle Modul-Instanz</h2>
				<ul>
					{foreach from=$Sys_Wrapper->getInstanceToolbox() item=i}
					<li>{html_linkbutton icon=$i->getIcon() text=$i->getTitle() type="button" link=$i->getLink() size="20" }</li>
					{/foreach}
				</ul>
				{/if}

				{if $Sys_Wrapper->getModuleToolbox()}
				<h2>Aktuelles Modul</h2>
				<ul>
					{foreach from=$Sys_Wrapper->getModuleToolbox() item=i}
					<li>{html_linkbutton icon=$i->getIcon() text=$i->getTitle() type="button" link=$i->getLink() size="20" }</li>
					{/foreach}
				</ul>
				{/if}

				{if $Sys_Wrapper->getPageToolbox()}
				<h2>Aktuelle Seite</h2>
				<ul>
					{foreach from=$Sys_Wrapper->getPageToolbox() item=i}
					<li>{html_linkbutton icon=$i->getIcon() text=$i->getTitle() type="button" link=$i->getLink() size="20" }</li>
					{/foreach}
				</ul>
				{/if}

				{if $Sys_Wrapper->getSiteToolbox()}
				<h2>Allgemein</h2>
				<ul>
					{foreach from=$Sys_Wrapper->getSiteToolbox() item=i}
					<li>{html_linkbutton icon=$i->getIcon() text=$i->getTitle() type="button" link=$i->getLink() size="20" }</li>
					{/foreach}
				</ul>
				{/if}
			</div>
			<div id="page"{if !$page->hasToolboxItems()}style="left: 20px;"{/if}>
				<h1>{$page->getTitle()}</h1>
				
{$Sys_PageContent|indent:4:"\t"}
			</div>
			<div id="content_footer"></div>
		</div>
		
	</body>
</html>